﻿using IQIGame.Onigao.Framework;
using System.Collections.Generic;


namespace IQIGame.Onigao.Game
{
    /// <summary>
    /// List全局对象池
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public static class ListPool<T>
    {
        private static readonly ListPoolImpl<T> _pool = new ListPoolImpl<T>(50);

        public static List<T> Get()
        {
            return _pool.Get();
        }

        public static void Put(List<T> list)
        {
            _pool.Put(list);

        }

        public static void Clear()
        {
            _pool.Clear();
        }

    }
}
